<?php
/**
 * Created by JetBrains PhpStorm.
 * User: vander
 * Date: 5/31/13
 * Time: 8:37 PM
 * To change this template use File | Settings | File Templates.
 */
$videoDir = 'MyUploader/server/php/files/';

$video = glob($videoDir."*."."{mp4,MP4,mov,MOV}", GLOB_BRACE);
echo json_encode($video);
?>